package com.bstek.dao;

import com.bstek.model.domain.Employee;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @InterfaceName EmployeeDao
 * @Description TODO
 * @Author fazi
 * @Date 2019/1/9 20:36
 * @Version 1.0
 **/
@Mapper
public interface EmployeeDao {

    Employee get(String username);

    List<Employee> list(Map<String, Object> map);

    int count(Map<String, Object> map);

    int save(Employee employee);

    int update(Employee employee);

    int remove(String username);

    int batchRemove(String[] usernames);

    String[] listAllDept();
}
